import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '../components/Home'
import About from '../components/About'

//使用vue-router
Vue.use(VueRouter);



//配置路由表
const routes = [
  {
    path:'/home',
    component:Home
  },{
    path:'/about',
    component:About
  }
]


//导出路由对象
export default new VueRouter({
  routes
});

